<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    
    <title>客户信息修改</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link class="bootstrap library" rel="stylesheet" type="text/css" href="<c:url value="/css/bootstrap.min.css"/>">
	<script src="js/jquery-1.2.6.min.js" type=text/javascript></script>
	<script src="js/formValidator.js" type="text/javascript" charset="UTF-8"></script>
	<script src="js/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>

	<style>
      *{margin:0;padding: 0;}
       body{background: #444 url(img/carbon_fibre_big.png)}
      .loginBox{width:400px;height:400px;padding:0 20px;border:1px solid #fff; color:#000; margin-top:40px;
        border-radius:8px;background: white;box-shadow:0 0 15px #222;text-align:center;
     /* background: -moz-linear-gradient(top, #fff, #efefef 8%);
        background: -webkit-gradient(linear, 0 0, 0 100%, from(#f6f6f6), to(#f4f4f4));
       */
        font:11px/1.5em 'Microsoft YaHei' ;position: absolute;left:50%;top:35%;margin-left:-210px;margin-top:-115px;
        
        }
      .loginBox h2{height:45px;font-size:20px;font-weight:normal;}
      .loginBox .left{#ccc;height:100%; }
      
  
      
      </style>
    
      <script type="text/javascript">
      
      
        function goback(){
	        history.go(-1);
	    }
 
      function check(){
	        
	        var isOk=true;
	      
	        
	        with(document.content_form){
	            
	            //检测是否有未填写的信息
	            if(name.value==""){
	                alert("下单会员不能为空,请检查!");
	                isOk=false;
	            }
	            else if(setMony.value==""){
	                alert("付款方式不能为空,请检查!");
	                isOk=false;
	            }
	            else if(post.value==""){
	                alert("送货方式不能为空,请检查!");
	                isOk=false;
	            }
	            
	            else if(amount.value==""){
	                alert("订单金额为空,请检查!");
	                isOk=false;
	            }
	            
	            else if(reallyName.value==""){
	                alert("收件人姓名为空,请检查!");
	                isOk=false;
	            }
	            else if(address.value==""){
	                alert("收件人地址为空,请检查!");
	                isOk=false;
	            }
	            else if(tel.value==""){
	                alert("联系方式为空,请检查!");
	                isOk=false;
	            }
	            else if(zipCode.value==""){
	                alert("邮编栏信息为空,请检查!");
	                isOk=false;
	            }
	            else if(email.value==""){
	                alert("电子邮箱内容为空,请检查!");
	                isOk=false;
	            }
	            
	            //通过检测,提交表单
	            if(isOk){
	                document.forms[0].submit();
	            }
	            
	            
	        }//end check_infos
	        
	   }
      </script>

  </head>
  
  <body>
  	
      <hr/>
      <div class="wrapper">
       <section class="loginBox row-fluid">
          <section class="span7 left">
           <div class="title">
          <center><h2>订单信息修改</h2></center>
      </div>
          <form name="content_form" id="content_form" class="content_form" action="<c:url value='/indent' />" method="post" >
              <input type="hidden" name="act" value="update"/>
              <input type="hidden" name="order_no" value="${indent.orderNo }"/>
              <input type="hidden" name="sign" value="${indent.sign }"/>
              
             
              <div class="wrapper_div">
                  <span>客户昵称:</span>
                  <input type="text" style="width: 160" name="name" id="t_UserPass" value="${indent.name }"/>
             	  
              </div>
              <div class="wrapper_div">
                  <span>客户姓名:</span>
                  <input type="text" style="width: 160" name="reallyName" id="t_RePass"  value="${indent.reallyName }"/>
              	 
              </div>
              <div class="wrapper_div">
                  <span>地址:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span>
                  <input type="text" style="width: 160" name="address" id="iptName"  value="${indent.address }"/>
              	 
              </div>
              <div class="wrapper_div">
                  <span>电话:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span>
                  <input type="text" style="width: 160" name="tel" id="iptName"  value="${indent.tel }"/>
              	 
              </div>
              <div class="wrapper_div" >
                  <span >邮编:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span>
                  <input type="text" style="width:160" name="zipCode" id="t_UserName"  value="${indent.zipCode }"/>
                  
              </div>
              <div class="wrapper_div">
                  <span>邮箱:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span>
                  <input type="text"  style="width: 160" name="email" id="Birthday" value="${indent.email }"/>
            	  
              </div>
              <div class="wrapper_div">
                  <span>付款方式:</span>
                  <input type="text" style="width: 160" name="setMony" id="t_Email" value="${indent.setMony }"/>
             	 
              </div>
              <div class="wrapper_div">
                  <span>送货方式:</span>
                  <input type="text" style="width: 160" name="post" id="t_Email" value="${indent.post }"/>
             	 
              </div>
              
              <div class="wrapper_div">                 
                 
                  <button class="btn btn-primary" onclick="check();">修 改</button>
                  <button onclick="goback();" class="btn btn-primary">返 回</button>
              </div>
          </form>
          </section>
        </section>
      </div>
  </body>
</html>

